package org.linuxsogood.chapter2.controller;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by m on 16/3/18.
 */
@WebServlet("/customer_create")
public class CustomerShowServlet extends HttpServlet {

    /**
     * 进入创建用户的界面
     * @param req 用户Request对象
     * @param resp 响应用户response对象
     * @throws ServletException
     * @throws IOException
     */
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {


    }

    /**
     * 处理创建用户的请求,数据入库
     * @param req 用户Request对象
     * @param resp 响应用户response对象
     * @throws ServletException
     * @throws IOException
     */
    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {


    }
}
